From: Paul Eggert Date: Fri, 21 Jun 2019 23:22:26 +0000 (-0700) Subject: Fix default build-from-Git on macOS X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~2723 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9b170060ba80c62a3a38e39d0c9692bdddd6ae47;p=emacs.git Fix default build-from-Git on macOS * configure.ac (NS_IMPL_COCOA): Do not default to "yes" if src/macuvs.h is absent, which is possible in a build from Git. --- diff --git a/configure.ac b/configure.ac index be5c4e35b17..c1c49700029 100644 --- a/configure.ac +++ b/configure.ac @@ -1960,7 +1960,10 @@ CFLAGS="$CFLAGS -x objective-c" GNU_OBJC_CFLAGS= LIBS_GNUSTEP= if test "${with_ns}" != no; then - if test "${opsys}" = darwin; then + # macfont.o requires macuvs.h which is absent in the repository, + # so avoid NS_IMPL_COCOA if macuvs.h is absent. + # Even a headless Emacs can build macuvs.h, so this lets you bootstrap. + if test "${opsys}" = darwin && test -f "$srcdir/src/macuvs.h"; then NS_IMPL_COCOA=yes ns_appdir=`pwd`/nextstep/Emacs.app ns_appbindir=${ns_appdir}/Contents/MacOS